package com.zhuss.product.hotLineSite;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import com.zhuss.bean.bo.product.hotLineSite.DetailHotLineSiteBo;
import com.zhuss.bean.bo.product.hotLineSite.SearchHotLineSiteBo;
import com.zhuss.common.ReadService;
import com.zhuss.product.processor.HotLineSiteRead;
import com.zhuss.exception.DzcxException;

/**
 * @description: 热门线路站点查询Service
 * @author: zhushanshuo
 * @create: Mon Jan 11 09:22:02 CST 2021
 **/
@Component("hotLineSiteReadService")
public class HotLineSiteReadService implements ReadService<Object, Object> {
	
	@Autowired
	@Qualifier("hotLineSiteRead")
	private HotLineSiteRead hotLineSiteRead;
	
	/**
	 * 详情
	 */
	@Override
	public Object detail(Object param) throws DzcxException {
		DetailHotLineSiteBo bo = (DetailHotLineSiteBo) param;
		Long hotLineSiteId = bo.getHotLineSiteId();
		Object vo = hotLineSiteRead.detail(hotLineSiteId);
		return vo;
	}
	
	/**
	 * 列表
	 */
	@Override
	public Object list(Object param) {
		SearchHotLineSiteBo bo = (SearchHotLineSiteBo) param;
		Object result = hotLineSiteRead.list(bo);
		return result;
	}
	
}

